<template>
  <div class="Subcate" >
    <div class="subitem" v-for="(item,index) in subList" :key="index">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <p>{{item.title}}</p>
      </a> 
    </div> 
  </div>

</template>

<script>

export default {
  props:{
    subList:{
      type:Array,
      default(){
        return []
      }
    }
  },
  components:{
    
  }
}
</script>

<style scoped>
.Subcate{
  display: flex;
  flex-wrap: wrap;
}
.subitem{
  flex: 0 1 33%;
  text-align: center;
  padding-top: 10px;
}
.subitem img{
  width: 60%;
  margin-bottom: 10px;
}
.subitem p{
  height: 20px;
  color:#666;
  font-size: 12px;
}
</style>